/// API相关常量
class ApiConstants {
  // API端点
  static const String login = '/auth/login';
  static const String register = '/auth/register';
  static const String forgotPassword = '/auth/forgot-password';
  static const String resetPassword = '/auth/reset-password';
  static const String refreshToken = '/auth/refresh-token';
  static const String profile = '/user/profile';
  static const String updateProfile = '/user/profile';
  static const String changePassword = '/user/change-password';
  
  // 设备相关
  static const String devices = '/devices';
  static const String deviceDetail = '/devices/:id';
  static const String deviceData = '/devices/:id/data';
  static const String deviceControl = '/devices/:id/control';
  static const String deviceAlarms = '/devices/:id/alarms';
  
  // 超时设置
  static const int connectionTimeout = 30000;  // 连接超时(毫秒)
  static const int receiveTimeout = 30000;     // 接收超时(毫秒)
  
  // 请求头
  static const String contentType = 'Content-Type';
  static const String accept = 'Accept';
  static const String authorization = 'Authorization';
  static const String bearer = 'Bearer';
  
  // 内容类型
  static const String applicationJson = 'application/json';
} 